package com.yh.supergo.manager.feign;

import com.yh.supergo.pojo.Goods;
import com.yh.supergo.pojo.Goodsdesc;
import com.yh.supergo.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @InterfaceName GoodsFeignClient
 * @Description TODO
 * @Author 0715-YuHao
 * @Date 2020/11/21 10:31
 */
@FeignClient("supergo-manager")
public interface GoodsFeignClient {

    @GetMapping("/goods/{goodsId}")
    Goods getGoodsById(@PathVariable long goodsId);

    @GetMapping("/goods/desc/{goodsId}")
    Goodsdesc getGoodsDescById(@PathVariable long goodsId);

    @GetMapping("/goods/item/{goodsId}")
    List<Item> getItemList(@PathVariable long goodsId);
}
